Use cairo_surface_destroy instead of g_object_unref
authorKristian Rietveld <kris@gtk.org>
Sat, 16 Oct 2010 18:16:19 +0000 (20:16 +0200)
committerKristian Rietveld <kris@gtk.org>
Sun, 17 Oct 2010 08:30:46 +0000 (10:30 +0200)
demos/gtk-demo/drawingarea.c

index b0b760a69328a5534d1c634ea1c11c4053fdd1b9..4af4cae1d24c44ab1ff686db3ca458eeaa621465 100644 (file)
@@ -193,7 +193,7 @@ close_window (void)
   window = NULL;
 
   if (surface)
-    g_object_unref (surface);
+    cairo_surface_destroy (surface);
   surface = NULL;
 }